class CreatePictures < ActiveRecord::Migration
  def self.up
    create_table :pictures do |t|
      t.integer :user_id
      t.string :title
      t.datetime :added_at
      t.string :url
      t.text :description
      t.integer :score
      t.integer :votes
      t.string :exposure_time
      t.string :fnumber
      t.string :camera
      t.string :iso_speed
      t.string :focal_length


      t.timestamps
    end
  end


  def self.down
    drop_table :pictures
  end
end